﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace thinger.AutomaticStoreMotionModels
{
    public class BasicParam
    {
        //XYZ轴坐标值设置（单位：mm）
        //X轴称重坐标值
        public double nudAxisXWeight { get; set; } = 0.0;

        //Y轴称重坐标值
        public double nudAxisYWeight { get; set; } = 0.0;

        //Z轴称重坐标值
        public double nudAxisZWeight { get; set; } = 0.0;


        //X轴回收坐标值
        public double nudAxisXRecovery { get; set; } = 0.0;

        //Y轴回收坐标值
        public double nudAxisYRecovery { get; set; } = 0.0;

        //Z轴回收坐标值
        public double nudAxisZRecovery { get; set; } = 0.0;


        //X轴待机坐标值
        public double nudAxisXStandby { get; set; } = 0.0;

        //Y轴待机坐标值
        public double nudAxisYStandby { get; set; } = 0.0;

        //Z轴待机坐标值
        public double nudAxisZStandby { get; set; } = 0.0;


        //X轴初始坐标值
        public double nudAxisXInit { get; set; } = 0.0;

        //Y轴初始坐标值
        public double nudAxisYInit { get; set; } = 0.0;

        //Z轴初始坐标值
        public double nudAxisZInit { get; set; } = 0.0;


        //X轴偏移坐标值
        public double nudAxisXOffset { get; set; } = 0.0;

        //Y轴偏移坐标值
        public double nudAxisYOffset { get; set; } = 0.0;

        //Z轴安全坐标值
        public double nudAxisZSafety { get; set; } = 0.0;


        //XYZ轴速度设置（单位：pulse/ms）
        //X轴手动速度
        public double nudAxisXHandSpeed { get; set; } = 15;

        //Y轴手动速度
        public double nudAxisYHandSpeed { get; set; } = 2;

        //Z轴手动速度
        public double nudAxisZHandSpeed { get; set; } = 1;


        //X轴自动速度
        public double nudAxisXAutoSpeed { get; set; } = 15;

        //Y轴自动速度
        public double nudAxisYAutoSpeed { get; set; } = 2;

        //Z轴自动速度
        public double nudAxisZAutoSpeed { get; set; } = 1;


        //系统参数
        //称重端口号
        public string cobWeightPort { get; set; } = "COM1";
        //称重波特率
        public int cobWeightBaud { get; set; } = 9600;
        //称重参数
        public string cobWeightParam { get; set; } = "N81";

        //扫码枪端口号
        public string cobScannerPort { get; set; } = "COM1";
        //扫码枪波特率
        public int cobScannerBaud { get; set; } = 9600;
        //扫码枪参数
        public string cobScannerParam { get; set; } = "N81";

        //空瓶重量
        public double nudEmptyWeight { get; set; } = 12.0;
        //冗余重量
        public double nudRedundantWeight { get; set; } = 2.0;

        //允许入库数量
        public int nudAllowInCount { get; set; } = 100;
        //允许出库数量
        public int nudAllowOutCount { get; set; } = 3;

        //自动锁定时间间隔 单位秒
        public int nudAutoLock { get; set; } = 100;

    }

}

